package chances.epg.user.service;

import java.util.List;

import chances.epg.entity.user.ScheduleOrder;

public interface ScheduleOrderService {

	/**
	 * 用户添加节目预约
	 * 
	 * @param userSub
	 */
	public void add(ScheduleOrder userSub);

	/**
	 * 查询用户添加节目预约
	 * 
	 * @param userSub
	 */
	public List<ScheduleOrder> listScheduleOrder(String userId, String stbNo);

	/**
	 * 取消用户添加节目预约
	 * 
	 * @param userSub
	 */
	public void cancel(String userId, String code);

	/**
	 * 批量取消用户添加节目预约
	 * 
	 * @param userSub
	 */
	public void deleteSub(String userId, String[] codes, String stbNo);

	public List<ScheduleOrder> listPlayingScheduleOrder();

	public void updateListScheduleOrder(List<Long> subscrList);

}
